aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payment/[id]/bump-estimate
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/payment/[id]/bump-estimate')
-rw-r--r--src/routes/(app)/payment/[id]/bump-estimate/+server.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/routes/(app)/payment/[id]/bump-estimate/+server.ts b/src/routes/(app)/payment/[id]/bump-estimate/+server.ts
new file mode 100644
index 00000000..dc5a8642
--- /dev/null
+++ b/src/routes/(app)/payment/[id]/bump-estimate/+server.ts
@@ -0,0 +1,12 @@
+import { auth, post } from "$lib/utils";
+import { json, error } from "@sveltejs/kit";
+
+export async function POST({ cookies, request }) {
+ const body = await request.json();
+ try {
+ const res = await post("/bump/estimate", body, auth(cookies));
+ return json(res);
+ } catch (e: any) {
+ error(400, e.message);
+ }
+}